home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / ScreenSaver / PICTSprite.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.2 KB  |  60 lines  |  [TEXT/CWIE]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        PICTSprite.h                                             **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     Easy way to do animation using PICT resources             **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1997 Apple Computer, Inc.  All rights reserved.         **
  11.  **                                                                             **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14.  
  15. #ifndef PICTSprite_h
  16. #define PICTSprite_h
  17.  
  18. #if PRAGMA_ONCE
  19.     #pragma once
  20. #endif
  21.  
  22. #include <QD3D.h>
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif    /* __cplusplus */
  27.  
  28.  
  29. typedef struct iTPICTSprite TPICTSprite;
  30.  
  31.  
  32.  
  33. TQ3Status    PICTSprite_Dispose(
  34.                 TPICTSprite        *ioSprite);
  35.                 
  36.                 
  37. TQ3Status    PICTSprite_Draw(
  38.                 TPICTSprite        *inSprite);
  39.                 
  40.  
  41. TPICTSprite *PICTSprite_New(
  42.                 long        inBasePictureID,
  43.                 long        inTotalFaces,
  44.                 long        inStartFace,
  45.                 CGrafPtr    inDestPort,
  46.                 Rect        *inDestRect);
  47.                 
  48. TPICTSprite *PICTSprite_SetRect(
  49.                 Rect        inDestRect);
  50.                 
  51.                 
  52.  
  53.  
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif    /* __cplusplus */
  58.  
  59. #endif  /*  PICTSprite_h  */
  60.